package socket;

/**
 * 
 * pfister@lgi2p 07/11/28
 * 
 */

public interface Protocol {
	/*communication protocol*/
	//public static final int CLIENTPORT_ = 8256;
	public static final int SERVERPORT = 8255;
	public static final String NEWCLIENT = "p_new ";
	public static final String EOM = "p_eom"; //end of message
	public static final String EVENT = "p_event";
	public static final String QUIT = "p_quit ";
	public static final String INCOMING = "p_incoming ";
	public static final String REMOVE = "p_remove ";
	public static final String CONNECTED = "p_connected ";
	public static final String NOONE = "p_noone ";
	public static final String BROADCAST = "p_broadcast ";
	public static final String START = "p_starting ";
	public static final String STOP = "p_stopped ";
	public static final String ERROR = "p_error ";
	public static final String SEND = "p_send";
	public static final String RESET = "p_reset ";
	public static final String PROMPT = " > ";
	public static final String WELCOME = "\ntype " + QUIT
			+ "to end connexion" + "\ntype your messages now\n" + PROMPT;
	
	/*functional domain protocol*/
	/*
	public static final String D_FAILURE = "p_failure "; //"p_failure 1"
	public static final String D_CLOSEINPUT = "p_closeinput "; 
	public static final String D_OPENINPUT = "p_openinput "; 
	public static final String D_FAILRATIO = "p_failratio "; //"p_failratio 50"
	public static final String D_STOP = "p_stop "; 
	public static final String D_START = "p_start "; 
	*/
	public static final String D_CREATE_SHAPE = "p_create_shape "; 


	
	
}
